package cn.kgc.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * @author example
 * @version 1.0
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "resume_expect")
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@SuppressWarnings("all")
public class ResumeExpect extends Model<ResumeExpect> implements Serializable {

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 谁的求职期望，用户id
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 属于哪份简历id
     */
    @TableField(value = "resume_id")
    private String resumeId;

    /**
     * 期望职位
     */
    @TableField(value = "job_name")
    private String jobName;

    /**
     * 工作所在城市
     */
    @TableField(value = "city")
    private String city;

    /**
     * 工作对应所处行业
     */
    @TableField(value = "industry")
    private String industry;

    /**
     * 薪资要求区间-起始
     */
    @TableField(value = "begin_salary")
    private Integer beginSalary;

    /**
     * 薪资要求区间-结束
     */
    @TableField(value = "end_salary")
    private Integer endSalary;

    @TableField(value = "created_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    @TableField(value = "updated_time",fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;
}